package pl.ptemich.nov2k13.engine;

import pl.ptemich.tankwars.tools.HexTools;

public class OffsetCooridinate {

  public int r;
  
  public int c;
 
  public OffsetCooridinate(int c, int r) {
    this.r = r;
    this.c = c;
  }
  
  public String toString() {
    return "r:" + r + ",c:" + c;
  }
 
  public CubeCooridnate getCubeCoordinate() {
    return HexTools.getCubeCoordinate(this);
  }
  
  public AxialCoordinate getAxialCoordinate() {
    return HexTools.getAxialCoordinate(getCubeCoordinate());  
  }
  
}
